//
//  WWRecordButton.h
//  WWKeyboard
//
//  Created by 王文文 on 2018/2/13.
//  Copyright © 2018年 王文文. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WWRecordButton;

typedef void (^RecordTouchDown)         (WWRecordButton *recordButton);
typedef void (^RecordTouchUpOutside)    (WWRecordButton *recordButton);
typedef void (^RecordTouchUpInside)     (WWRecordButton *recordButton);
typedef void (^RecordTouchDragEnter)    (WWRecordButton *recordButton);
typedef void (^RecordTouchDragInside)   (WWRecordButton *recordButton);
typedef void (^RecordTouchDragOutside)  (WWRecordButton *recordButton);
typedef void (^RecordTouchDragExit)     (WWRecordButton *recordButton);

@interface WWRecordButton : UIButton

@property (nonatomic, copy) RecordTouchDown         recordTouchDownAction;
@property (nonatomic, copy) RecordTouchUpOutside    recordTouchUpOutsideAction;
@property (nonatomic, copy) RecordTouchUpInside     recordTouchUpInsideAction;
@property (nonatomic, copy) RecordTouchDragEnter    recordTouchDragEnterAction;
@property (nonatomic, copy) RecordTouchDragInside   recordTouchDragInsideAction;
@property (nonatomic, copy) RecordTouchDragOutside  recordTouchDragOutsideAction;
@property (nonatomic, copy) RecordTouchDragExit     recordTouchDragExitAction;

- (void)setButtonStateWithRecording;
- (void)setButtonStateWithNormal;
@end
